package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.MallOrderGoods;
import com.appkubes.mall.core.po.MallOrderGoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface MallOrderGoodsMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallOrderGoodsSqlProvider.class, method="countByExample")
    long countByExample(MallOrderGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @DeleteProvider(type=MallOrderGoodsSqlProvider.class, method="deleteByExample")
    int deleteByExample(MallOrderGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @Delete({
        "delete from mall_order_goods",
        "where ordergoods_key = #{ordergoodsKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String ordergoodsKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @Insert({
        "insert into mall_order_goods (ordergoods_key, app_key, ",
        "store_key, order_key, ",
        "goods_key, goods_name, ",
        "price, num, amount, ",
        "attr_names, pic, ",
        "create_time, `state`, ",
        "leader_key, salesman_key, ",
        "update_time, user_key, ",
        "saas_userid, coupon_money, ",
        "pay_amount, `type`, ",
        "is_delete, share_amount, ",
        "activity_key, activity_endtime, ",
        "delivery_time, delivery_status, ",
        "version, attr_keys)",
        "values (#{ordergoodsKey,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR}, ",
        "#{storeKey,jdbcType=VARCHAR}, #{orderKey,jdbcType=VARCHAR}, ",
        "#{goodsKey,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, ",
        "#{price,jdbcType=DECIMAL}, #{num,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL}, ",
        "#{attrNames,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, ",
        "#{createTime,jdbcType=INTEGER}, #{state,jdbcType=VARCHAR}, ",
        "#{leaderKey,jdbcType=VARCHAR}, #{salesmanKey,jdbcType=VARCHAR}, ",
        "#{updateTime,jdbcType=INTEGER}, #{userKey,jdbcType=VARCHAR}, ",
        "#{saasUserid,jdbcType=CHAR}, #{couponMoney,jdbcType=DECIMAL}, ",
        "#{payAmount,jdbcType=DECIMAL}, #{type,jdbcType=TINYINT}, ",
        "#{isDelete,jdbcType=INTEGER}, #{shareAmount,jdbcType=DECIMAL}, ",
        "#{activityKey,jdbcType=VARCHAR}, #{activityEndtime,jdbcType=INTEGER}, ",
        "#{deliveryTime,jdbcType=INTEGER}, #{deliveryStatus,jdbcType=TINYINT}, ",
        "#{version,jdbcType=INTEGER}, #{attrKeys,jdbcType=LONGVARCHAR})"
    })
    int insert(MallOrderGoods record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @InsertProvider(type=MallOrderGoodsSqlProvider.class, method="insertSelective")
    int insertSelective(MallOrderGoods record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallOrderGoodsSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="ordergoods_key", property="ordergoodsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="store_key", property="storeKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="num", property="num", jdbcType=JdbcType.INTEGER),
        @Result(column="amount", property="amount", jdbcType=JdbcType.DECIMAL),
        @Result(column="attr_names", property="attrNames", jdbcType=JdbcType.VARCHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="state", property="state", jdbcType=JdbcType.VARCHAR),
        @Result(column="leader_key", property="leaderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="salesman_key", property="salesmanKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="saas_userid", property="saasUserid", jdbcType=JdbcType.CHAR),
        @Result(column="coupon_money", property="couponMoney", jdbcType=JdbcType.DECIMAL),
        @Result(column="pay_amount", property="payAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="type", property="type", jdbcType=JdbcType.TINYINT),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.INTEGER),
        @Result(column="share_amount", property="shareAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="activity_key", property="activityKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="activity_endtime", property="activityEndtime", jdbcType=JdbcType.INTEGER),
        @Result(column="delivery_time", property="deliveryTime", jdbcType=JdbcType.INTEGER),
        @Result(column="delivery_status", property="deliveryStatus", jdbcType=JdbcType.TINYINT),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER),
        @Result(column="attr_keys", property="attrKeys", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<MallOrderGoods> selectByExampleWithBLOBsWithRowbounds(MallOrderGoodsExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallOrderGoodsSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="ordergoods_key", property="ordergoodsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="store_key", property="storeKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="num", property="num", jdbcType=JdbcType.INTEGER),
        @Result(column="amount", property="amount", jdbcType=JdbcType.DECIMAL),
        @Result(column="attr_names", property="attrNames", jdbcType=JdbcType.VARCHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="state", property="state", jdbcType=JdbcType.VARCHAR),
        @Result(column="leader_key", property="leaderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="salesman_key", property="salesmanKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="saas_userid", property="saasUserid", jdbcType=JdbcType.CHAR),
        @Result(column="coupon_money", property="couponMoney", jdbcType=JdbcType.DECIMAL),
        @Result(column="pay_amount", property="payAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="type", property="type", jdbcType=JdbcType.TINYINT),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.INTEGER),
        @Result(column="share_amount", property="shareAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="activity_key", property="activityKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="activity_endtime", property="activityEndtime", jdbcType=JdbcType.INTEGER),
        @Result(column="delivery_time", property="deliveryTime", jdbcType=JdbcType.INTEGER),
        @Result(column="delivery_status", property="deliveryStatus", jdbcType=JdbcType.TINYINT),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER),
        @Result(column="attr_keys", property="attrKeys", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<MallOrderGoods> selectByExampleWithBLOBs(MallOrderGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallOrderGoodsSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="ordergoods_key", property="ordergoodsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="store_key", property="storeKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="num", property="num", jdbcType=JdbcType.INTEGER),
        @Result(column="amount", property="amount", jdbcType=JdbcType.DECIMAL),
        @Result(column="attr_names", property="attrNames", jdbcType=JdbcType.VARCHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="state", property="state", jdbcType=JdbcType.VARCHAR),
        @Result(column="leader_key", property="leaderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="salesman_key", property="salesmanKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="saas_userid", property="saasUserid", jdbcType=JdbcType.CHAR),
        @Result(column="coupon_money", property="couponMoney", jdbcType=JdbcType.DECIMAL),
        @Result(column="pay_amount", property="payAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="type", property="type", jdbcType=JdbcType.TINYINT),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.INTEGER),
        @Result(column="share_amount", property="shareAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="activity_key", property="activityKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="activity_endtime", property="activityEndtime", jdbcType=JdbcType.INTEGER),
        @Result(column="delivery_time", property="deliveryTime", jdbcType=JdbcType.INTEGER),
        @Result(column="delivery_status", property="deliveryStatus", jdbcType=JdbcType.TINYINT),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    List<MallOrderGoods> selectByExampleWithRowbounds(MallOrderGoodsExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallOrderGoodsSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="ordergoods_key", property="ordergoodsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="store_key", property="storeKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="num", property="num", jdbcType=JdbcType.INTEGER),
        @Result(column="amount", property="amount", jdbcType=JdbcType.DECIMAL),
        @Result(column="attr_names", property="attrNames", jdbcType=JdbcType.VARCHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="state", property="state", jdbcType=JdbcType.VARCHAR),
        @Result(column="leader_key", property="leaderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="salesman_key", property="salesmanKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="saas_userid", property="saasUserid", jdbcType=JdbcType.CHAR),
        @Result(column="coupon_money", property="couponMoney", jdbcType=JdbcType.DECIMAL),
        @Result(column="pay_amount", property="payAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="type", property="type", jdbcType=JdbcType.TINYINT),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.INTEGER),
        @Result(column="share_amount", property="shareAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="activity_key", property="activityKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="activity_endtime", property="activityEndtime", jdbcType=JdbcType.INTEGER),
        @Result(column="delivery_time", property="deliveryTime", jdbcType=JdbcType.INTEGER),
        @Result(column="delivery_status", property="deliveryStatus", jdbcType=JdbcType.TINYINT),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    List<MallOrderGoods> selectByExample(MallOrderGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "ordergoods_key, app_key, store_key, order_key, goods_key, goods_name, price, ",
        "num, amount, attr_names, pic, create_time, `state`, leader_key, salesman_key, ",
        "update_time, user_key, saas_userid, coupon_money, pay_amount, `type`, is_delete, ",
        "share_amount, activity_key, activity_endtime, delivery_time, delivery_status, ",
        "version, attr_keys",
        "from mall_order_goods",
        "where ordergoods_key = #{ordergoodsKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="ordergoods_key", property="ordergoodsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="store_key", property="storeKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="num", property="num", jdbcType=JdbcType.INTEGER),
        @Result(column="amount", property="amount", jdbcType=JdbcType.DECIMAL),
        @Result(column="attr_names", property="attrNames", jdbcType=JdbcType.VARCHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="state", property="state", jdbcType=JdbcType.VARCHAR),
        @Result(column="leader_key", property="leaderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="salesman_key", property="salesmanKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="saas_userid", property="saasUserid", jdbcType=JdbcType.CHAR),
        @Result(column="coupon_money", property="couponMoney", jdbcType=JdbcType.DECIMAL),
        @Result(column="pay_amount", property="payAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="type", property="type", jdbcType=JdbcType.TINYINT),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.INTEGER),
        @Result(column="share_amount", property="shareAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="activity_key", property="activityKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="activity_endtime", property="activityEndtime", jdbcType=JdbcType.INTEGER),
        @Result(column="delivery_time", property="deliveryTime", jdbcType=JdbcType.INTEGER),
        @Result(column="delivery_status", property="deliveryStatus", jdbcType=JdbcType.TINYINT),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER),
        @Result(column="attr_keys", property="attrKeys", jdbcType=JdbcType.LONGVARCHAR)
    })
    MallOrderGoods selectByPrimaryKey(String ordergoodsKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallOrderGoodsSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") MallOrderGoods record, @Param("example") MallOrderGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallOrderGoodsSqlProvider.class, method="updateByExampleWithBLOBs")
    int updateByExampleWithBLOBs(@Param("record") MallOrderGoods record, @Param("example") MallOrderGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallOrderGoodsSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") MallOrderGoods record, @Param("example") MallOrderGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallOrderGoodsSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(MallOrderGoods record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @Update({
        "update mall_order_goods",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "store_key = #{storeKey,jdbcType=VARCHAR},",
          "order_key = #{orderKey,jdbcType=VARCHAR},",
          "goods_key = #{goodsKey,jdbcType=VARCHAR},",
          "goods_name = #{goodsName,jdbcType=VARCHAR},",
          "price = #{price,jdbcType=DECIMAL},",
          "num = #{num,jdbcType=INTEGER},",
          "amount = #{amount,jdbcType=DECIMAL},",
          "attr_names = #{attrNames,jdbcType=VARCHAR},",
          "pic = #{pic,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=INTEGER},",
          "`state` = #{state,jdbcType=VARCHAR},",
          "leader_key = #{leaderKey,jdbcType=VARCHAR},",
          "salesman_key = #{salesmanKey,jdbcType=VARCHAR},",
          "update_time = #{updateTime,jdbcType=INTEGER},",
          "user_key = #{userKey,jdbcType=VARCHAR},",
          "saas_userid = #{saasUserid,jdbcType=CHAR},",
          "coupon_money = #{couponMoney,jdbcType=DECIMAL},",
          "pay_amount = #{payAmount,jdbcType=DECIMAL},",
          "`type` = #{type,jdbcType=TINYINT},",
          "is_delete = #{isDelete,jdbcType=INTEGER},",
          "share_amount = #{shareAmount,jdbcType=DECIMAL},",
          "activity_key = #{activityKey,jdbcType=VARCHAR},",
          "activity_endtime = #{activityEndtime,jdbcType=INTEGER},",
          "delivery_time = #{deliveryTime,jdbcType=INTEGER},",
          "delivery_status = #{deliveryStatus,jdbcType=TINYINT},",
          "version = #{version,jdbcType=INTEGER},",
          "attr_keys = #{attrKeys,jdbcType=LONGVARCHAR}",
        "where ordergoods_key = #{ordergoodsKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKeyWithBLOBs(MallOrderGoods record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_goods
     *
     * @mbg.generated
     */
    @Update({
        "update mall_order_goods",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "store_key = #{storeKey,jdbcType=VARCHAR},",
          "order_key = #{orderKey,jdbcType=VARCHAR},",
          "goods_key = #{goodsKey,jdbcType=VARCHAR},",
          "goods_name = #{goodsName,jdbcType=VARCHAR},",
          "price = #{price,jdbcType=DECIMAL},",
          "num = #{num,jdbcType=INTEGER},",
          "amount = #{amount,jdbcType=DECIMAL},",
          "attr_names = #{attrNames,jdbcType=VARCHAR},",
          "pic = #{pic,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=INTEGER},",
          "`state` = #{state,jdbcType=VARCHAR},",
          "leader_key = #{leaderKey,jdbcType=VARCHAR},",
          "salesman_key = #{salesmanKey,jdbcType=VARCHAR},",
          "update_time = #{updateTime,jdbcType=INTEGER},",
          "user_key = #{userKey,jdbcType=VARCHAR},",
          "saas_userid = #{saasUserid,jdbcType=CHAR},",
          "coupon_money = #{couponMoney,jdbcType=DECIMAL},",
          "pay_amount = #{payAmount,jdbcType=DECIMAL},",
          "`type` = #{type,jdbcType=TINYINT},",
          "is_delete = #{isDelete,jdbcType=INTEGER},",
          "share_amount = #{shareAmount,jdbcType=DECIMAL},",
          "activity_key = #{activityKey,jdbcType=VARCHAR},",
          "activity_endtime = #{activityEndtime,jdbcType=INTEGER},",
          "delivery_time = #{deliveryTime,jdbcType=INTEGER},",
          "delivery_status = #{deliveryStatus,jdbcType=TINYINT},",
          "version = #{version,jdbcType=INTEGER}",
        "where ordergoods_key = #{ordergoodsKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(MallOrderGoods record);
}